package com.saxon.blog.service.user;


import com.saxon.blog.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface UserService {
    User getUserById (@Param ("id") int id);

    //查询
    User getUser (Map<String, Object> map);

    //添加用户
    int insertUser (User user);

    //查询用户的数量
    int queryNum ();

    //修改密码
    int updateUser (String userAccount, String userPassword);

    //修改信息
    int updateUser (Map<String, Object> map);

    //查询用户
    List<User> getUserWithList (Map<String, Object> map);

    //删除一个用户
    int deleteUserById (Map<String, Object> map);
}
